-- GENERATED SPELL FOR [Witherbark Hideskinner] --


function spell0_2651(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(8721,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2651', 608, 1)
end

function Sorts_2651(pUnit, Event)
local choix_sorts_2651 = math.random(0, 0)
if choix_sorts_2651 == 0 then
pUnit:RegisterEvent('spell0_2651', 1, 1)
end
end

function mob2651_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2651', math.random(1500, 3000), 1)
end

function mob2651_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2651_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2651_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2651, 1, 'mob2651_Action')
RegisterUnitEvent(2651, 2, 'mob2651_Leave')
RegisterUnitEvent(2651, 3, 'mob2651_Kill')
RegisterUnitEvent(2651, 4, 'mob2651_Die')
